package com.dbf.site.client.user.model;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class UserModel implements IsSerializable {
	
	private Long id;
	private String userLogin;
	private String userPassword;
	private String userFirstName;
	private String userLastName;
	private boolean userActivationStatus;
	private Date userCreationDate;
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUserLogin() {
		return userLogin;
	}
	public void setUserLogin(String userLogin) {
		this.userLogin = userLogin;
	}
	public String getUserFirstName() {
		return userFirstName;
	}
	public void setUserFirstName(String userFirstName) {
		this.userFirstName = userFirstName;
	}
	public String getUserLastName() {
		return userLastName;
	}
	public void setUserLastName(String userLastName) {
		this.userLastName = userLastName;
	}
	public boolean isUserActivationStatus() {
		return userActivationStatus;
	}
	public void setUserActivationStatus(boolean userActivationStatus) {
		this.userActivationStatus = userActivationStatus;
	}
	public Date getUserCreationDate() {
		return userCreationDate;
	}
	public void setUserCreationDate(Date userCreationDate) {
		this.userCreationDate = userCreationDate;
	}
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	
	public void copy(UserModel user) {
		this.userFirstName = user.userFirstName;
		this.userLastName = user.userLastName;
		this.userLogin = user.userLogin;
		this.userPassword = user.userPassword;
		this.userCreationDate  = new Date();
	}
	
}
